package com.lwlean.audit.config;

import com.lwlean.audit.interceptor.SystemInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by lean on 16-11-6.
 */
@Configuration
public class MvcConfig extends WebMvcConfigurerAdapter{
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
         registry.addInterceptor(new SystemInterceptor()).excludePathPatterns("/loginPage");
    }
}


